import request from '@/utils/request'

// 获取当前页品牌列表
export const getBrandList = (page, limit) => request({
    url: `/list-api/admin/product/baseTrademark/${page}/${limit}`,
    method: 'get'
})
// 获取全部品牌列表
export const getAllBrandList = () => request({
    url: '/list-api/admin/product/baseTrademark/getTrademarkList',
    method: 'get'
})
// 添加品牌
export const addBrand = (trademark) => request({
    url: `/list-api/admin/product/baseTrademark/save`,
    method: "post",
    data: trademark
})
// 修改品牌
export const updateBrand = (tradeMark) => request({
    url: `/list-api/admin/product/baseTrademark/update`,
    method: 'put',
    data: tradeMark
})
// 删除品牌
export const deleteBrand = (id) => request({
    url: `/list-api/admin/product/baseTrademark/remove/${id}`,
    method: 'delete'
})